<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
</html>
<script type="text/javascript">
	const p = new Promise((resolve,reject)=>{
		setTimeout(()=>{
			reject("出错啦");
		},1000)
	});
	
	// p.then(function(value){},function(reason){
	// 	console.error(reason);
	// });
	
	p.catch(function(reason){
		console.warn(reason)
	})
</script>